package cn.Robbery.basic.mapper;

import cn.Robbery.basic.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {

    void save(T t);

    void update(T t);

    void remove(long id);

    T loadById(long id);

    List<T> loadAll();

    Integer queryCount(BaseQuery query);

    List<T> queryData(BaseQuery query);

    void patchDelete(List<Long> ids);
}
